← Index
NYTProf Performance Profile   
For /usr/share/koha/opac/cgi-bin/opac/opac-search.pl
  Run on Tue Oct 15 17:10:45 2013
Reported on Tue Oct 15 17:12:50 2013

Filename(eval 1048)[/usr/share/perl/5.10/CGI.pm:869]
StatementsExecuted 20 statements in 37µs
Eval Invoked At/usr/share/perl/5.10/CGI.pm line 869
Sibling evals1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
22140µs104µsCGI::::deleteCGI::delete
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package CGI; #### Method: delete
2# Deletes the named parameter entirely.
3####
4
# spent 104µs (40+64) within CGI::delete which was called 2 times, avg 52µs/call: # once (25µs+42µs) by CGI::init at line 832 of CGI.pm # once (15µs+21µs) by CGI::init at line 708 of CGI.pm
sub delete {
525µs26µs my($self,@p) = self_or_default(@_);
# spent 6µs making 2 calls to CGI::self_or_default, avg 3µs/call
626µs232µs my(@names) = rearrange([NAME],@p);
# spent 32µs making 2 calls to CGI::Util::rearrange, avg 16µs/call
721µs my @to_delete = ref($names[0]) eq 'ARRAY' ? @$names[0] : @names;
82500ns my %to_delete;
922µs for my $name (@to_delete)
10 {
1122µs CORE::delete $self->{param}{$name};
122800ns CORE::delete $self->{'.fieldnames'}->{$name};
1324µs $to_delete{$name}++;
14 }
1527µs227µs @{$self->{'.parameters'}}=grep { !exists($to_delete{$_}) } $self->param();
# spent 27µs making 2 calls to CGI::param, avg 13µs/call
1629µs return;
17}
18
19;